package com.example.travel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class TemplatesController {

    @GetMapping("login")
    public String login(){

        return "login";
    }

    @GetMapping("index")
    public String index(){

        return "index";
    }

    @GetMapping("left")
    public String left(){

        return "left";
    }

    @GetMapping("header")
    public String header(){

        return "header";
    }

    //用户

    @GetMapping("admin/user/toAdd")
    public String userAdd(){
        return "user/add";
    }

    //商家

    @GetMapping("admin/seller/toAdd")
    public String sellerAdd(){
        return "seller/add";
    }


    //线路
    @GetMapping("admin/route/image")
    public String routeImage(){
        return "route/image";
    }

    //分类管理

    @GetMapping("admin/category/toAdd")
    public String categoryAdd(){
        return "category/add";
    }


}
